<template>
  <!-- 编辑 -->
  <!-- v-if="isLoad" -->
  <EditForm isEdit :initVal="val"></EditForm>
</template>

<script setup name="bannerEdit">
import { getBannerApi } from "@/api/banner";
import EditForm from "./component/form";
const route = useRoute();
//拿到id
const { id } = route.params;
const val = ref({});
// const isLoad = ref(false);
//ajax
getBannerApi(id).then((res) => {
  val.value = res;
  // isLoad.value = true;
});
</script>
